package com.ymttest.database.sqlwapper;

import java.util.List;
import java.util.Map;
import java.util.UUID;

import com.ymt.core.tool.Logger;
import com.ymt.database.SqlManager;

/************************************************************************************
 * @File name : YmtUserWapper.java
 * @Author : zhouyi
 * @Date : 2015年4月2日
 * @Copyright : 洋码头
 ************************************************************************************/
public class BillWapper {
	SqlManager manage;

	public BillWapper() {
		manage = new SqlManager("xlobosit1");
	}
	
	//根据DB单号查询面单
	public List<Map> selectbyScode (String scode)throws InterruptedException{
		@SuppressWarnings("unchecked")
		List <Map> billList=manage.getSelectResults(
				"com.ymttest.database.mapping.BillMapper.selectbyScode", scode);
    	manage.commit();
		return billList;
	}

	
	public List<Map> selectbillshipinfobyScode (String scode)throws InterruptedException{
		@SuppressWarnings("unchecked")
		List <Map> billList=manage.getSelectResults(
				"com.ymttest.database.mapping.BillMapper.selectbillshipinfobyScode", scode);
    	manage.commit();
		return billList;
	}
	

	public static void main(String args[]) {
	    try {
	    		Logger.debug(new BillWapper().selectbillshipinfobyScode("DB023208929UK").get(0).get("Id"));
	    		
	    } catch (InterruptedException e) {
	        e.printStackTrace();
	    }
	}
}
